import {createRoute, dynamicWrapper} from '../../../utils/core';

import dlistMol from "../../Device/DList/model";
import hlistMol from "../HList/model";
import dataDetailMol from "../../Data/DataValueStatistics/model";
import qualityMols from "../../Quality/QData/model";
import channelMol from "../../Data/Channel/model";
import qualityListMols from "../../Quality/QList/model";


const routesConfig = app => ({
  path: '/detail/hospital/:hospitalId',
  title: '医院详情',
  component: dynamicWrapper(app,
    [import('./model'), dlistMol, hlistMol, dataDetailMol, channelMol, qualityListMols, ...qualityMols],
    () => import('./components'))
});

export default app => createRoute(app, routesConfig);
